﻿<form method="get" class="form-horizontal">
	<div class="form-group">
		<label class="col-sm-3 col-sm-offset-1 control-label">点赞视频数量</label>
		<div class="col-sm-7">
			<div><input type="text" id="search" class="search" name="search" value="" /></div>
		</div>
	</div>
	<div class="form-group">
			<label class="col-sm-3 col-sm-offset-1 control-label">点赞个数</label>
			<div class="col-sm-7">
				<div><input type="text" id="search1" class="search1" name="search1" value="" /></div>
			</div>
	</div>
</form>

<!-- #################################今日头条(搜索文章评论)################################## -->
<script>
    function btn_select_manage() {
        var search = document.getElementById("search").value;
        var terminationNum = document.getElementById("search1").value;
        <!-- var searchResult = search1.split("||"); -->
        if (search == "") {
            toastr.warning("翻页数量不能为空");
        } else if (terminationNum == "") {
            toastr.warning("点赞个数不能为空");
        } else if(!/^[0-9]*$/.test(search)){
            toastr.warning("翻页数量只能输入数字!");
            return false;
        } else if(!/^[0-9]*$/.test(terminationNum)){
            toastr.warning("点赞个数只能输入数字!");
            return false;
        }else {
            var json = { "search": search, "terminationNum":terminationNum}
            issuedData.setView(JSON.stringify(json));
            $("#select_manage").modal("hide");
            $("#btn_manage").text("抖音(同城评论点赞)插件");
            $("#btn_manage").show();
            $("#btn_manage").prev().show();
            $("#btn_manage").prev().prev().hide();
            Color.success("state_manage");
        }
    }

</script>